package com.i7time.qutan.controller;

import com.i7time.qutan.utils.ReturnMap;
import com.i7time.service.AccountService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.HashMap;
import java.util.Map;

/**
 * Created by Hsia on 16/6/7.
 */
@Controller
@RequestMapping("/account")
public class AccountController {

   // @Autowired
    AccountService accountService;



    @ResponseBody
    @RequestMapping("getUserZuan")
    public Map isExist(@RequestBody Map map){
        HashMap result= ReturnMap.getSuccessMap();

        Long userid=(Long)map.get("userid");
        int zuan=accountService.getUserZuan(userid);
        result.put("","");
        return result;

    }


}
